<?php defined('SYSPATH') or die('No direct script access.');
 
class Model_Apartment extends ORM
{
    protected $_belongs_to = array(
      'city'  => array(
               'model'       => 'city',
               'foreign_key' => 'city_id',
          ),
        'photo' => array(
               'model'       => 'photo',
               'foreign_key' => 'photo_id',
        )
    );
    
   
}


